<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;3.8.0pr2&#x2F;build&#x2F;cssgrids&#x2F;cssgrids-min.css">
    <link rel="stylesheet" href="..&#x2F;assets/vendor/prettify/prettify-min.css">
    <link rel="stylesheet" href="..&#x2F;assets/css/main.css" id="site_styles">
    <link rel="shortcut icon" type="image/png" href="..&#x2F;assets/PreloadJS_16x16.png">
    <script src="http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;combo?3.8.0pr2&#x2F;build&#x2F;yui&#x2F;yui-min.js"></script>
	<title>PreloadJS v0.3.0 API Documentation : LoadQueue</title>  
</head>
<body class="yui3-skin-sam">

<div id="doc">
    <div id="hd" class="yui3-g header">
        <div class="yui3-u-3-4">
            
                <h1><a href="http:&#x2F;&#x2F;www.createjs.com&#x2F;#!&#x2F;PreloadJS"><img src="http:&#x2F;&#x2F;createjs.com&#x2F;resources&#x2F;SuiteIcons&#x2F;PreloadJS&#x2F;docs-icon-PreloadJS.png" title="PreloadJS"></a></h1>
            
        </div>
        <div class="yui3-u-1-4 version">
            <em>API Documentation for: 0.3.0</em>
        </div>
    </div>
    <div id="bd" class="yui3-g">

        <div class="yui3-u-1-4">
            <div id="docs-sidebar" class="sidebar apidocs">
                <div id="api-list">
    <h2 class="off-left">APIs</h2>
    <div id="api-tabview" class="tabview">
        <ul class="tabs">
            <li><a href="#api-classes">Classes</a></li>
        </ul>

        <div id="api-tabview-filter">
            <input type="search" id="api-filter" placeholder="Type to filter APIs">
        </div>

        <div id="api-tabview-panel">
            <ul id="api-classes" class="apis classes">
            
                <li><a href="..&#x2F;classes/AbstractLoader.html">AbstractLoader</a></li>
            
                <li><a href="..&#x2F;classes/EventDispatcher.html">EventDispatcher</a></li>
            
                <li><a href="..&#x2F;classes/LoadQueue.html">LoadQueue</a></li>
            
                <li><a href="..&#x2F;classes/PreloadJS.html">PreloadJS</a></li>
            
                <li><a href="..&#x2F;classes/TagLoader.html">TagLoader</a></li>
            
                <li><a href="..&#x2F;classes/XHRLoader.html">XHRLoader</a></li>
            
            </ul>

            <ul id="api-modules" class="apis modules">
            
                <li><a href="..&#x2F;modules/PreloadJS.html">PreloadJS</a></li>
            
            </ul>
        </div>
    </div>
</div>

            </div>
        </div>
        <div class="yui3-u-3-4">
            <div id="api-options">
        Show:
        <label for="api-show-inherited">
            <input type="checkbox" id="api-show-inherited" checked>
            Inherited
        </label>

        <label for="api-show-protected">
            <input type="checkbox" id="api-show-protected">
            Protected
        </label>

        <label for="api-show-private">
            <input type="checkbox" id="api-show-private">
            Private
        </label>
        <label for="api-show-deprecated">
            <input type="checkbox" id="api-show-deprecated">
            Deprecated
        </label>

    </div>
            <div class="apidocs">
                <div id="docs-main">
                    <div class="content">
                        <h1>LoadQueue Class</h1>
<div class="box meta">
    

    
        <div class="extends">
            Extends <a href="../classes/AbstractLoader.html" class="crosslink">AbstractLoader</a>
        </div>
    

    
        <div class="foundat">
            Defined in: <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l88"><code>LoadQueue:88</code></a>
        </div>
    

    
        
            Module: <a href="../modules/PreloadJS.html">PreloadJS</a>
        
    

    
</div>



<div class="box intro">
    <p>The LoadQueue class is the main API for preloading content. LoadQueue is a load manager, which maintains
a single file, or a queue of files.</p>

<p><b>Creating a Queue</b><br />
To use LoadQueue, create a LoadQueue instance. If you want to force tag loading where possible, set the useXHR
argument to false.</p>

<pre class="code prettyprint"><code> var queue = new createjs.LoadQueue(true);
</code></pre>

<p><b>Listening for Events</b><br />
Add any listeners you want to the queue. Since PreloadJS 0.3.0, the <a href="../classes/EventDispatcher.html" class="crosslink">EventDispatcher</a>
lets you add as many listeners as you want for events. You can subscribe to complete, error, fileload, progress,
and fileprogress.</p>

<pre class="code prettyprint"><code> queue.addEventListener("fileload", handleFileLoad);
 queue.addEventListener("complete", handleComplete);
</code></pre>

<p><b>Adding files and manifests</b><br />
Add files you want to load using <a href="../classes/LoadQueue.html#method_loadFile" class="crosslink">loadFile</a> or add multiple files at a
time using <a href="../classes/LoadQueue.html#method_loadManifest" class="crosslink">loadManifest</a>. Files are appended to the queue, so you can use
these methods as many times as you like, whenever you like.</p>

<pre class="code prettyprint"><code> queue.loadFile("filePath/file.jpg");
 queue.loadFile({id:"image", src:"filePath/file.jpg"});
 queue.loadManifest(["filePath/file.jpg", {id:"image", src:"filePath/file.jpg"}];
</code></pre>

<p>If you pass <code>false</code> as the second parameter, the queue will not immediately load the files (unless it
has already been started). Call the <a href="../classes/AbstractLoader.html#method_load" class="crosslink">load</a> method to begin a paused queue.
Note that a paused queue will automatically resume when new files are added to it.</p>

<pre class="code prettyprint"><code> queue.load();
</code></pre>

<p><b>Handling Results</b><br />
When a file is finished downloading, a "fileload" event is dispatched. In an example above, there is an event
listener snippet for fileload. Loaded files are always an object that can be used immediately, including:</p>

<ul>
    <li>Image: An &lt;img /&gt; tag</li>
    <li>Audio: An &lt;audio /&gt; tag</a>
    <li>JavaScript: A &lt;script /&gt; tag</li>
    <li>CSS: A &lt;link /&gt; tag</li>
    <li>XML: An XML DOM node</li>
    <li>SVG: An &lt;object /&gt; tag</li>
    <li>JSON: A formatted JavaScript Object</li>
    <li>Text: Raw text</li>
    <li>Binary: The binary loaded result</li>
</ul>

<pre class="code prettyprint"><code> function handleFileLoad(event) {
     var item = event.item; // A reference to the item that was passed in
     var type = item.type;

     // Add any images to the page body.
     if (type == createjs.LoadQueue.IMAGE) {
         document.body.appendChild(event.result);
     }
 }
</code></pre>

<p>At any time after the file has been loaded (usually after the queue has completed), any result can be looked up
via its "id" using <a href="../classes/LoadQueue.html#method_getResult" class="crosslink">getResult</a>. If no id was provided, then the "src" or
file path can be used instead. It is recommended to always pass an id.</p>

<pre class="code prettyprint"><code> var image = queue.getResult("image");
 document.body.appendChild(image);
</code></pre>

<p>Raw loaded content can be accessed using the <code>rawResult</code> property of the <code>fileload</code> event,
or can be looked up using <a href="../classes/LoadQueue.html#method_getResult" class="crosslink">getResult</a>, and <code>true</code> as the 2nd
parameter. This is only applicable for content that has been parsed for the browser, specifically, JavaScript,
CSS, XML, SVG, and JSON objects.</p>

<pre class="code prettyprint"><code> var image = queue.getResult("image", true);
</code></pre>

<p><b>Plugins</b><br />
LoadQueue has a simple plugin architecture to help process and preload content. For example, to preload audio,
make sure to install the <a href="http://soundjs.com">SoundJS</a> Sound class, which will help preload HTML
audio, Flash audio, and WebAudio files. This should be installed <b>before</b> loading any audio files.</p>

<pre class="code prettyprint"><code> queue.installPlugin(createjs.Sound);
</code></pre>

<h4>Known Browser Issues</h4>

<ul><li>Browsers without audio support can not load audio files.</li>
     <li>Audio tags will only download until their <code>canPlayThrough</code> event is fired. Browsers other
     than Chrome will continue to download in the background.</li>
     <li>When loading scripts using tags, they are automatically added to the document.</li>
     <li>Scripts loaded via XHR may not be properly inspectable with browser tools.</li>
     <li>IE6 and IE7 (and some other browsers) may not be able to load XML, Text, or JSON, since they require
     XHR to work.</li>
     <li>Content loaded via tags will not show progress, and although they can be canceled, they will continue
     to download in the background.</li>
</ul>
</div>


    <div class="constructor">
        <h2>Constructor</h2>
        <div id="method_LoadQueue" class="method item">
    <h3 class="name"><code>LoadQueue</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code class="optional">[useXHR=true]</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l88"><code>LoadQueue:88</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name optional">[useXHR=true]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    

                    

                    <div class="param-description">
                        <p>Determines whether the preload instance will favor loading with XHR (XML HTTP Requests),
or HTML tags. When this is <code>false</code>, LoadQueue will use tag loading when possible, and fall back on XHR
when necessary.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

    </div>


<div id="classdocs" class="tabview">
    <ul class="api-class-tabs">
        <li class="api-class-tab index"><a href="#index">Index</a></li>

        
            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
        
        
            <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
        
        
        
            <li class="api-class-tab events"><a href="#events">Events</a></li>
        
    </ul>

    <div>
        <div id="index" class="api-class-tabpanel index">
            <h2 class="off-left">Item Index</h2>

            
                <div class="index-section methods">
                    <h3>Methods</h3>

                    <ul class="index-list methods extends">
                        
                            <li class="index-item method private">
                                <a href="#method__addItem">_addItem</a>

                                
                                
                            </li>
                        
                            <li class="index-item method private">
                                <a href="#method__checkScriptLoadOrder">_checkScriptLoadOrder</a>

                                
                                
                            </li>
                        
                            <li class="index-item method private">
                                <a href="#method__createLoader">_createLoader</a>

                                
                                
                            </li>
                        
                            <li class="index-item method private">
                                <a href="#method__createLoadItem">_createLoadItem</a>

                                
                                
                            </li>
                        
                            <li class="index-item method private">
                                <a href="#method__createTag">_createTag</a>

                                
                                
                            </li>
                        
                            <li class="index-item method private">
                                <a href="#method__disposeItem">_disposeItem</a>

                                
                                
                            </li>
                        
                            <li class="index-item method private">
                                <a href="#method__handleFileComplete">_handleFileComplete</a>

                                
                                
                            </li>
                        
                            <li class="index-item method private">
                                <a href="#method__handleFileError">_handleFileError</a>

                                
                                
                            </li>
                        
                            <li class="index-item method private">
                                <a href="#method__handleProgress">_handleProgress</a>

                                
                                
                            </li>
                        
                            <li class="index-item method protected inherited">
                                <a href="#method__isCanceled">_isCanceled</a>

                                
                                
                            </li>
                        
                            <li class="index-item method private">
                                <a href="#method__loadItem">_loadItem</a>

                                
                                
                            </li>
                        
                            <li class="index-item method private">
                                <a href="#method__loadNext">_loadNext</a>

                                
                                
                            </li>
                        
                            <li class="index-item method protected inherited">
                                <a href="#method__parseURI">_parseURI</a>

                                
                                
                            </li>
                        
                            <li class="index-item method private">
                                <a href="#method__removeLoadItem">_removeLoadItem</a>

                                
                                
                            </li>
                        
                            <li class="index-item method protected inherited">
                                <a href="#method__sendComplete">_sendComplete</a>

                                
                                
                            </li>
                        
                            <li class="index-item method protected inherited">
                                <a href="#method__sendError">_sendError</a>

                                
                                
                            </li>
                        
                            <li class="index-item method protected">
                                <a href="#method__sendFileComplete">_sendFileComplete</a>

                                
                                
                            </li>
                        
                            <li class="index-item method protected">
                                <a href="#method__sendFileProgress">_sendFileProgress</a>

                                
                                
                            </li>
                        
                            <li class="index-item method protected inherited">
                                <a href="#method__sendLoadStart">_sendLoadStart</a>

                                
                                
                            </li>
                        
                            <li class="index-item method protected inherited">
                                <a href="#method__sendProgress">_sendProgress</a>

                                
                                
                            </li>
                        
                            <li class="index-item method private">
                                <a href="#method__updateProgress">_updateProgress</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_addEventListener">addEventListener</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_close">close</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_dispatchEvent">dispatchEvent</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getItem">getItem</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getResult">getResult</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_hasEventListener">hasEventListener</a>

                                
                                
                            </li>
                        
                            <li class="index-item method private inherited inherited">
                                <a href="#method_initialize">initialize</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_installPlugin">installPlugin</a>

                                
                                
                            </li>
                        
                            <li class="index-item method private">
                                <a href="#method_isBinary">isBinary</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_load">load</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_loadFile">loadFile</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_loadManifest">loadManifest</a>

                                
                                
                            </li>
                        
                            <li class="index-item method private deprecated">
                                <a href="#method_proxy">proxy</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                                    <span class="flag deprecated">deprecated</span>
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_remove">remove</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_removeAll">removeAll</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_removeAllEventListeners">removeAllEventListeners</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited">
                                <a href="#method_removeEventListener">removeEventListener</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_reset">reset</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_setMaxConnections">setMaxConnections</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_setPaused">setPaused</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_setUseXHR">setUseXHR</a>

                                
                                
                            </li>
                        
                            <li class="index-item method inherited inherited">
                                <a href="#method_toString">toString</a>

                                
                                
                            </li>
                        
                    </ul>
                </div>
            

            
                <div class="index-section properties">
                    <h3>Properties</h3>

                    <ul class="index-list properties extends">
                        
                            <li class="index-item property private">
                                <a href="#property__currentLoads">_currentLoads</a>

                                
                                
                            </li>
                        
                            <li class="index-item property private">
                                <a href="#property__currentlyLoadingScript">_currentlyLoadingScript</a>

                                
                                
                            </li>
                        
                            <li class="index-item property private">
                                <a href="#property__extensionCallbacks">_extensionCallbacks</a>

                                
                                
                            </li>
                        
                            <li class="index-item property private inherited">
                                <a href="#property__item">_item</a>

                                
                                
                            </li>
                        
                            <li class="index-item property protected inherited">
                                <a href="#property__listeners">_listeners</a>

                                
                                
                            </li>
                        
                            <li class="index-item property private">
                                <a href="#property__loadedRawResults">_loadedRawResults</a>

                                
                                
                            </li>
                        
                            <li class="index-item property private">
                                <a href="#property__loadedResults">_loadedResults</a>

                                
                                
                            </li>
                        
                            <li class="index-item property private">
                                <a href="#property__loadedScripts">_loadedScripts</a>

                                
                                
                            </li>
                        
                            <li class="index-item property private">
                                <a href="#property__loadItemsById">_loadItemsById</a>

                                
                                
                            </li>
                        
                            <li class="index-item property private">
                                <a href="#property__loadItemsBySrc">_loadItemsBySrc</a>

                                
                                
                            </li>
                        
                            <li class="index-item property private">
                                <a href="#property__loadQueue">_loadQueue</a>

                                
                                
                            </li>
                        
                            <li class="index-item property private">
                                <a href="#property__loadQueueBackup">_loadQueueBackup</a>

                                
                                
                            </li>
                        
                            <li class="index-item property private">
                                <a href="#property__loadStartWasDispatched">_loadStartWasDispatched</a>

                                
                                
                            </li>
                        
                            <li class="index-item property private">
                                <a href="#property__maxConnections">_maxConnections</a>

                                
                                
                            </li>
                        
                            <li class="index-item property private">
                                <a href="#property__numItems">_numItems</a>

                                
                                
                            </li>
                        
                            <li class="index-item property private">
                                <a href="#property__numItemsLoaded">_numItemsLoaded</a>

                                
                                
                            </li>
                        
                            <li class="index-item property private">
                                <a href="#property__scriptOrder">_scriptOrder</a>

                                
                                
                            </li>
                        
                            <li class="index-item property private">
                                <a href="#property__typeCallbacks">_typeCallbacks</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_BINARY">BINARY</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_canceled">canceled</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_CSS">CSS</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_IMAGE">IMAGE</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_JAVASCRIPT">JAVASCRIPT</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_JSON">JSON</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_LOAD_TIMEOUT">LOAD_TIMEOUT</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_loaded">loaded</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_maintainScriptOrder">maintainScriptOrder</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_next">next</a>

                                
                                
                            </li>
                        
                            <li class="index-item property deprecated inherited">
                                <a href="#property_onComplete">onComplete</a>

                                
                                
                                    <span class="flag deprecated">deprecated</span>
                                
                            </li>
                        
                            <li class="index-item property deprecated inherited">
                                <a href="#property_onError">onError</a>

                                
                                
                                    <span class="flag deprecated">deprecated</span>
                                
                            </li>
                        
                            <li class="index-item property deprecated">
                                <a href="#property_onFileLoad">onFileLoad</a>

                                
                                
                                    <span class="flag deprecated">deprecated</span>
                                
                            </li>
                        
                            <li class="index-item property deprecated">
                                <a href="#property_onFileProgress">onFileProgress</a>

                                
                                
                                    <span class="flag deprecated">deprecated</span>
                                
                            </li>
                        
                            <li class="index-item property deprecated inherited">
                                <a href="#property_onLoadStart">onLoadStart</a>

                                
                                
                                    <span class="flag deprecated">deprecated</span>
                                
                            </li>
                        
                            <li class="index-item property deprecated inherited">
                                <a href="#property_onProgress">onProgress</a>

                                
                                
                                    <span class="flag deprecated">deprecated</span>
                                
                            </li>
                        
                            <li class="index-item property inherited">
                                <a href="#property_progress">progress</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_SOUND">SOUND</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_stopOnError">stopOnError</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_SVG">SVG</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_TEXT">TEXT</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_useXHR">useXHR</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_XML">XML</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                    </ul>
                </div>
            

            

            
                <div class="index-section events">
                    <h3>Events</h3>

                    <ul class="index-list events extends">
                        
                            <li class="index-item event inherited">
                                <a href="#event_complete">complete</a>

                                
                                
                            </li>
                        
                            <li class="index-item event inherited">
                                <a href="#event_error">error</a>

                                
                                
                            </li>
                        
                            <li class="index-item event">
                                <a href="#event_fileload">fileload</a>

                                
                                
                            </li>
                        
                            <li class="index-item event">
                                <a href="#event_fileprogress">fileprogress</a>

                                
                                
                            </li>
                        
                            <li class="index-item event inherited">
                                <a href="#event_loadStart">loadStart</a>

                                
                                
                            </li>
                        
                            <li class="index-item event inherited">
                                <a href="#event_progress">progress</a>

                                
                                
                            </li>
                        
                    </ul>
                </div>
            
        </div>

        
            <div id="methods" class="api-class-tabpanel">
                <h2 class="off-left">Methods</h2>

                
                    <div id="method__addItem" class="method item private">
    <h3 class="name"><code>_addItem</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>value</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag private">private</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l907"><code>_addItem:907</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Add an item to the queue. Items are formatted into a usable object containing all the properties necessary to
load the content. The load queue is populated with the loader instance that handles preloading, and not the load
item that was passed in by the user. To look up the load item by id or src, use the LoadQueue.getItem
method.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">value</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The item to add to the queue.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method__checkScriptLoadOrder" class="method item private">
    <h3 class="name"><code>_checkScriptLoadOrder</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag private">private</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l1183"><code>_checkScriptLoadOrder:1183</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Ensure the scripts load and dispatch in the correct order. When using XHR, scripts are stored in an array in the
order they were added, but with a "null" value. When they are completed, the value is set to the load item,
and then when they are processed and dispatched, the value is set to <code>true</code>. This method simply
iterates the array, and ensures that any loaded items that are not preceded by a <code>null</code> value are
dispatched.</p>
    </div>

    

    

    
</div>

                
                    <div id="method__createLoader" class="method item private">
    <h3 class="name"><code>_createLoader</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>item</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="../classes/AbstractLoader.html" class="crosslink">AbstractLoader</a></span>
        </span>
    

    

    
        <span class="flag private">private</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l1026"><code>_createLoader:1026</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Create a loader for a load item.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">item</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>A formatted load item that can be used to generate a loader.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="../classes/AbstractLoader.html" class="crosslink">AbstractLoader</a></span>:
                    
                    A loader that can be used to load content.
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method__createLoadItem" class="method item private">
    <h3 class="name"><code>_createLoadItem</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>value</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
        </span>
    

    

    
        <span class="flag private">private</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l937"><code>_createLoadItem:937</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Create a refined load item, which contains all the required properties (src, type, extension, tag). The type of
item is determined by browser support, requirements based on the file type, and developer settings. For example,
XHR is only used for file types that support it in new browsers.</p>

<p>Before the item is returned, any plugins registered to handle the type or extension will be fired, which may
alter the load item.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">value</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> | HTMLAudioElement | HTMLImageElement</span>
                    

                    

                    <div class="param-description">
                        <p>The item that needs to be preloaded.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>:
                    
                    The loader instance that will be used.
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method__createTag" class="method item private">
    <h3 class="name"><code>_createTag</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>type</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">HTMLImageElement | HTMLAudioElement | HTMLScriptElement | HTMLLinkElement | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
        </span>
    

    

    
        <span class="flag private">private</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l1275"><code>_createTag:1275</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Create an HTML tag. This is in LoadQueue instead of <a href="../classes/TagLoader.html" class="crosslink">TagLoader</a> because no matter
how we load the data, we may need to return it in a tag.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>The item type. Items are passed in by the developer, or deteremined by the extension.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">HTMLImageElement | HTMLAudioElement | HTMLScriptElement | HTMLLinkElement | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>:
                    
                    The tag that is created.
Note that tags are not appended to the HTML body.
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method__disposeItem" class="method item private">
    <h3 class="name"><code>_disposeItem</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>item</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag private">private</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l1260"><code>_disposeItem:1260</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Clean out item results, to free them from memory. Mainly, the loaded item and results are cleared from internal
hashes.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">item</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The item that was passed in for preloading.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method__handleFileComplete" class="method item private">
    <h3 class="name"><code>_handleFileComplete</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>event</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag private">private</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l1140"><code>_handleFileComplete:1140</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>An item has finished loading. We can assume that it is totally loaded, has been parsed for immediate use, and
is available as the "result" property on the load item. The raw text result for a parsed item (such as JSON, XML, 
CSS, JavaScript, etc) is available as the "rawResult" event, and can also be looked up using <a href="../classes/LoadQueue.html#method_getResult" class="crosslink">getResult</a>.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">event</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The event object from the loader.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method__handleFileError" class="method item private">
    <h3 class="name"><code>_handleFileError</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>event</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag private">private</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l1116"><code>_handleFileError:1116</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>The callback that is fired when a loader encounters an error. The queue will continue loading unless
<code>stopOnError</code> is set to <code>true</code>.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">event</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The error event, containing relevant error information.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method__handleProgress" class="method item private">
    <h3 class="name"><code>_handleProgress</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>event</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag private">private</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l1222"><code>_handleProgress:1222</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>An item has dispatched progress. Propagate that progress, and update the LoadQueue overall progress.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">event</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The progress event from the item.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method__isCanceled" class="method item protected inherited">
    <h3 class="name"><code>_isCanceled</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
        </span>
    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#method__isCanceled">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l293"><code>_isCanceled:293</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Determine if the load has been canceled. This is important to ensure that method calls or asynchronous events
do not cause issues after the queue has been cleaned up.</p>
    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
                    
                    If the loader has been canceled.
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method__loadItem" class="method item private">
    <h3 class="name"><code>_loadItem</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>loader</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag private">private</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l1102"><code>_loadItem:1102</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Begin loading an item. Events are not added to the loaders until the load starts.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">loader</code>
                        <span class="type"><a href="../classes/AbstractLoader.html" class="crosslink">AbstractLoader</a></span>
                    

                    

                    <div class="param-description">
                        <p>The loader instance to start. Currently, this will be an XHRLoader or TagLoader.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method__loadNext" class="method item private">
    <h3 class="name"><code>_loadNext</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag private">private</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l1058"><code>_loadNext:1058</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Load the next item in the queue. If the queue is empty (all items have been loaded), then the complete event
is processed. The queue will "fill up" any empty slots, up to the max connection specified using
LoadQueue.setMaxConnections method. The only exception is scripts that are loaded
using tags, which have to be loaded one at a time to maintain load order.</p>
    </div>

    

    

    
</div>

                
                    <div id="method__parseURI" class="method item protected inherited">
    <h3 class="name"><code>_parseURI</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>path</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
        </span>
    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#method__parseURI">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l307"><code>_parseURI:307</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Parse a file URI using the <code>AbstractLoader.FILE_PATTERN</code> RegExp pattern.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">path</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>The file path to parse.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>:
                    
                    The matched file contents. Please see the <code>AbstractLoader.FILE_PATTERN</code> property for
details on the return value. This will return null if it does not match.
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method__removeLoadItem" class="method item private">
    <h3 class="name"><code>_removeLoadItem</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>loader</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag private">private</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l1207"><code>_removeLoadItem:1207</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>A load item is completed or was canceled, and needs to be removed from the LoadQueue.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">loader</code>
                        <span class="type"><a href="../classes/AbstractLoader.html" class="crosslink">AbstractLoader</a></span>
                    

                    

                    <div class="param-description">
                        <p>A loader instance to remove.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method__sendComplete" class="method item protected inherited">
    <h3 class="name"><code>_sendComplete</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#method__sendComplete">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l265"><code>_sendComplete:265</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Dispatch a complete event (and onComplete callback). Please see the <code>AbstractLoader.complete</code> event
for details on the event payload.</p>
    </div>

    

    

    
</div>

                
                    <div id="method__sendError" class="method item protected inherited">
    <h3 class="name"><code>_sendError</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>event</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#method__sendError">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l277"><code>_sendError:277</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Dispatch an error event (and onError callback). Please see the <code>AbstractLoader.error</code> event for
details on the event payload.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">event</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The event object containing specific error properties.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method__sendFileComplete" class="method item protected">
    <h3 class="name"><code>_sendFileComplete</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>item</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l1380"><code>_sendFileComplete:1380</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Dispatch a fileload event (and onFileLoad callback). Please see the <code>LoadQueue.fileload</code> event for
details on the event payload.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">item</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The item that is being loaded.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method__sendFileProgress" class="method item protected">
    <h3 class="name"><code>_sendFileProgress</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>item</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>progress</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l1355"><code>_sendFileProgress:1355</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Dispatch a fileprogress event (and onFileProgress callback). Please see the <code>LoadQueue.fileprogress</code>
event for details on the event payload.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">item</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The item that is being loaded.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">progress</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                        <p>The amount the item has been loaded (between 0 and 1).</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method__sendLoadStart" class="method item protected inherited">
    <h3 class="name"><code>_sendLoadStart</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#method__sendLoadStart">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l228"><code>_sendLoadStart:228</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Dispatch a loadStart event (and onLoadStart callback). Please see the <code>AbstractLoader.loadStart</code> event
for details on the event payload.</p>
    </div>

    

    

    
</div>

                
                    <div id="method__sendProgress" class="method item protected inherited">
    <h3 class="name"><code>_sendProgress</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>value</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    
        <span class="flag protected">protected</span>
    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#method__sendProgress">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l240"><code>_sendProgress:240</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Dispatch a progress event (and onProgress callback). Please see the <code>AbstractLoader.progress</code> event
for details on the event payload.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">value</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The progress of the loaded item, or an object containing <code>loaded</code>
and <code>total</code> properties.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method__updateProgress" class="method item private">
    <h3 class="name"><code>_updateProgress</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag private">private</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l1234"><code>_updateProgress:1234</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Overall progress has changed, so determine the new progress amount and dispatch it. This changes any time an
item dispatches progress or completes. Note that since we don't know the actual filesize of items before they are
loaded, and even then we can only get the size of items loaded with XHR. In this case, we define a "slot" for
each item (1 item in 10 would get 10%), and then append loaded progress on top of the already-loaded items.</p>

<p>For example, if 5/10 items have loaded, and item 6 is 20% loaded, the total progress would be:<ul>
     <li>5/10 of the items in the queue (50%)</li>
     <li>plus 20% of item 6's slot (2%)</li>
     <li>equals 52%</li></ul></p>
    </div>

    

    

    
</div>

                
                    <div id="method_addEventListener" class="method item inherited">
    <h3 class="name"><code>addEventListener</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>type</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>listener</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;EventDispatcher.html#method_addEventListener">EventDispatcher</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_easeljs_events_EventDispatcher.js.html#l106"><code>addEventListener:106</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Adds the specified event listener.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>The string type of the event.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">listener</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>An object with a handleEvent method, or a function that will be called when
the event is dispatched.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>:
                    
                    Returns the listener for chaining or assignment.
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_close" class="method item inherited">
    <h3 class="name"><code>close</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#method_close">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l217"><code>close:217</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Close the active queue. Closing a queue completely empties the queue, and prevents any remaining items from
starting to download. Note that currently any active loads will remain open, and events may be processed.</p>

<p>To stop and restart a queue, use the <a href="../classes/LoadQueue.html#method_setPaused" class="crosslink">setPaused</a> method instead.</p>
    </div>

    

    

    
</div>

                
                    <div id="method_dispatchEvent" class="method item inherited">
    <h3 class="name"><code>dispatchEvent</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>eventObj</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code class="optional">[target]</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;EventDispatcher.html#method_dispatchEvent">EventDispatcher</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_easeljs_events_EventDispatcher.js.html#l154"><code>dispatchEvent:154</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Dispatches the specified event.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">eventObj</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>An object with a "type" property, or a string type. If a string is used,
dispatchEvent will contstruct a generic event object with "type" and "params" properties.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name optional">[target]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    

                    

                    <div class="param-description">
                        <p>The object to use as the target property of the event object. This will default to the
dispatching object.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
                    
                    Returns true if any listener returned true.
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getItem" class="method item">
    <h3 class="name"><code>getItem</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>value</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l838"><code>getItem:838</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Look up a load item using either the "id" or "src" that was specified when loading it.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">value</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>The <code>id</code> or <code>src</code> of the load item.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>:
                    
                    The load item that was initially requested using <a href="../classes/LoadQueue.html#method_loadFile" class="crosslink">loadFile</a>
or <a href="../classes/LoadQueue.html#method_loadManifest" class="crosslink">loadManifest</a>. This object is also returned via the "fileload" event
as the "item" parameter.
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getResult" class="method item">
    <h3 class="name"><code>getResult</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>value</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code class="optional">[rawResult=false]</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l850"><code>getResult:850</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Look up a loaded result using either the "id" or "src" that was specified when loading it.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">value</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>The <code>id</code> or <code>src</code> of the load item.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name optional">[rawResult=false]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    

                    

                    <div class="param-description">
                        <p>Return a raw result instead of a formatted result. This applies to content
loaded via XHR such as scripts, XML, CSS, and Images. If there is no raw result, the formatted result will be
returned instead.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>:
                    
                    A result object containing the content that was loaded, such as:

<ul>
     <li>An image tag (&lt;image /&gt;) for images</li>
     <li>An audio tag (&lt;audio &gt;) for audio</li>
     <li>A script tag for JavaScript (&lt;script /&gt;). Note that scripts loaded with tags may be added to the
     HTML head.</li>
     <li>A style tag for CSS (&lt;style /&gt;)</li>
     <li>Raw text for TEXT</li>
     <li>A formatted JavaScript object defined by JSON</li>
     <li>An XML document</li>
     <li>An binary arraybuffer loaded by XHR</li>
</ul>

This object is also returned via the "fileload" event as the "item" parameter. Note that if a raw result is
requested, but not found, the result will be returned instead.
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_hasEventListener" class="method item inherited">
    <h3 class="name"><code>hasEventListener</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>type</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;EventDispatcher.html#method_hasEventListener">EventDispatcher</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_easeljs_events_EventDispatcher.js.html#l180"><code>hasEventListener:180</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Indicates whether there is at least one listener for the specified event type.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>The string type of the event.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
                    
                    Returns true if there is at least one listener for the specified event.
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_initialize" class="method item private inherited">
    <h3 class="name"><code>initialize</code></h3>

    
        <span class="paren">()</span>
    

    

    

    
        <span class="flag private">private</span>
    

    

    

    

    

    <div class="meta">
        
            <p>Inherited from
            <a href="..&#x2F;classes&#x2F;EventDispatcher.html#method_initialize">
                EventDispatcher
            </a>
            
            but overwritten in
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l198"><code>initialize:198</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Initialize the loader. This is called by the constructor.</p>
    </div>

    

    

    
</div>

                
                    <div id="method_installPlugin" class="method item">
    <h3 class="name"><code>installPlugin</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>plugin</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l700"><code>installPlugin:700</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Register a plugin. Plugins can map to both load types (sound, image, etc), or can map to specific extensions
(png, mp3, etc). Currently, only one plugin can exist per type/extension. Plugins must return an object containing:
 <ul><li>callback: The function to call</li>
     <li>types: An array of types to handle</li>
     <li>extensions: An array of extensions to handle. This only fires if an applicable type handler has not fired.</li></ul>
Note that even though a plugin might match both a type and extension handler, the type handler takes priority and
is the only one that gets fired.  For example if you have a handler for type=sound, and a handler for extension=mp3,
only the type handler would fire when an mp3 file is loaded.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">plugin</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
                    

                    

                    <div class="param-description">
                        <p>The plugin to install</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_isBinary" class="method item private">
    <h3 class="name"><code>isBinary</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>type</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"></span>
        </span>
    

    

    
        <span class="flag private">private</span>
    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l680"><code>isBinary:680</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Determine if a specific type should be loaded as a binary file. Currently, only images and items marked
specifically as "binary" are loaded as binary. Note that audio is <b>not</b> a binary type, as we can not play
back using an audio tag if it is loaded as binary. Plugins can change the item type to binary to ensure they get
a binary result to work with. Binary files are loaded using XHR2.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>The item type.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                    If the specified type is binary.
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_load" class="method item inherited">
    <h3 class="name"><code>load</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#method_load">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l205"><code>load:205</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Begin loading the queued items. This method can be called when a <a href="../classes/LoadQueue.html" class="crosslink">LoadQueue</a> is set
up but not started immediately.</p>
    </div>

    

    

    
        <div class="example">
            <h4>Example:</h4>

            <div class="example-content">
                <pre class="code prettyprint"><code> var queue = new createjs.LoadQueue();
 queue.addEventListener("complete", handleComplete);
 queue.loadManifest(fileArray, false); // Note the 2nd argument that tells the queue not to start loading yet
 queue.load();
</code></pre>
            </div>
        </div>
    
</div>

                
                    <div id="method_loadFile" class="method item">
    <h3 class="name"><code>loadFile</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>file</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code class="optional">[loadNow=true]</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l743"><code>loadFile:743</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Load a single file. To add multiple files at once, use the <a href="../classes/LoadQueue.html#method_loadManifest" class="crosslink">loadManifest</a>
method.</p>

<p>Note that files are always appended to the current queue, so this method can be used multiple times to add files.
To clear the queue first, use the <a href="../classes/AbstractLoader.html#method_close" class="crosslink">close</a> method.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">file</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>The file object or path to load. A file can be either</p>

<ol>
    <li>a path to a resource (string). Note that this kind of load item will be
    converted to an object (see below) in the background.</li>
    <li>OR an object that contains:<ul>
        <li>src: The source of the file that is being loaded. This property is <b>required</b>. The source can
        either be a string (recommended), or an HTML tag.</li>
        <li>type: The type of file that will be loaded (image, sound, json, etc). PreloadJS does auto-detection
        of types using the extension. Supported types are defined on LoadQueue, such as <code>LoadQueue.IMAGE</code>.
        It is recommended that a type is specified when a non-standard file URI (such as a php script) us used.</li>
        <li>id: A string indentifier which can be used to reference the loaded object.</li>
        <li>data: An arbitrary data object, which is included with the loaded object</li>
    </ul>
</ol>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name optional">[loadNow=true]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    

                    

                    <div class="param-description">
                        <p>Kick off an immediate load (true) or wait for a load call (false). The default
value is true. If the queue is paused using <a href="../classes/LoadQueue.html#method_setPaused" class="crosslink">setPaused</a>, and the value is
true, the queue will resume automatically.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_loadManifest" class="method item">
    <h3 class="name"><code>loadManifest</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>manifest</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code class="optional">[loadNow=true]</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l780"><code>loadManifest:780</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Load an array of items. To load a single file, use the <a href="../classes/LoadQueue.html#method_loadFile" class="crosslink">loadFile</a> method.
The files in the manifest are requested in the same order, but may complete in a different order if the max
connections are set above 1 using <a href="../classes/LoadQueue.html#method_setMaxConnections" class="crosslink">setMaxConnections</a>. Scripts will load
in the right order as long as <code>loadQueue.maintainScriptOrder</code> is true (which is default).</p>

<p>Note that files are always appended to the current queue, so this method can be used multiple times to add files.
To clear the queue first, use the <a href="../classes/AbstractLoader.html#method_close" class="crosslink">close</a> method.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">manifest</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
                    

                    

                    <div class="param-description">
                        <p>The list of files to load. Each file can be either:</p>

<ol>
    <li>a path to a resource (string). Note that this kind of load item will be
     converted to an object (see below) in the background.</li>
    <li>OR an object that contains:<ul>
        <li>src: The source of the file that is being loaded. This property is <b>required</b>.
        The source can either be a string (recommended), or an HTML tag. </li>
        <li>type: The type of file that will be loaded (image, sound, json, etc). PreloadJS does auto-detection
        of types using the extension. Supported types are defined on LoadQueue, such as <code>LoadQueue.IMAGE</code>.
        It is recommended that a type is specified when a non-standard file URI (such as a php script) us used.</li>
        <li>id: A string identifier which can be used to reference the loaded object.</li>
        <li>data: An arbitrary data object, which is returned with the loaded object</li>
    </ul>
</ol>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name optional">[loadNow=true]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    

                    

                    <div class="param-description">
                        <p>Kick off an immediate load (true) or wait for a load call (false). The default
value is true. If the queue is paused using <a href="../classes/LoadQueue.html#method_setPaused" class="crosslink">setPaused</a> and this value is
true, the queue will resume automatically.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_proxy" class="method item private deprecated">
    <h3 class="name"><code>proxy</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>method</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>scope</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    
        <span class="flag deprecated" title="In favour of the createjs.proxy method (see LoadQueue source).">deprecated</span>
    

    
        <span class="flag private">private</span>
    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l1409"><code>proxy:1409</code></a>
        
        </p>


        
            <p>Deprecated: In favour of the createjs.proxy method (see LoadQueue source).</p>
        

        
    </div>

    <div class="description">
        <p>A function proxy for PreloadJS methods. By default, JavaScript methods do not maintain scope, so passing a
method as a callback will result in the method getting called in the scope of the caller. Using a proxy
ensures that the method gets called in the correct scope.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">method</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
                    

                    

                    <div class="param-description">
                        <p>The function to call</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">scope</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The scope to call the method name on</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_remove" class="method item">
    <h3 class="name"><code>remove</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>idsOrUrls</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l581"><code>remove:581</code></a>
        
        </p>


        

        
            <p>Available since 0.3.0</p>
        
    </div>

    <div class="description">
        <p>Stops an item from being loaded, and removes it from the queue. If nothing is passed, all items are removed.
This also removes internal references to loaded item(s).</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">idsOrUrls</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
                    

                    

                    <div class="param-description">
                        <p>The id or ids to remove from this queue. You can pass an item, an array of
items, or multiple items as arguments.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_removeAll" class="method item">
    <h3 class="name"><code>removeAll</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l570"><code>removeAll:570</code></a>
        
        </p>


        

        
            <p>Available since 0.3.0</p>
        
    </div>

    <div class="description">
        <p>Stops all queued and loading items, and clears the queue. This also removes all internal references to loaded
content, and allows the queue to be used again. Items that have not yet started can be kicked off again using
the <a href="../classes/AbstractLoader.html#method_load" class="crosslink">load</a> method.</p>
    </div>

    

    

    
</div>

                
                    <div id="method_removeAllEventListeners" class="method item inherited">
    <h3 class="name"><code>removeAllEventListeners</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code class="optional">[type]</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;EventDispatcher.html#method_removeAllEventListeners">EventDispatcher</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_easeljs_events_EventDispatcher.js.html#l144"><code>removeAllEventListeners:144</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Removes all listeners for the specified type, or all listeners of all types.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name optional">[type]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    

                    

                    <div class="param-description">
                        <p>The string type of the event. If omitted, all listeners for all types will be removed.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_removeEventListener" class="method item inherited">
    <h3 class="name"><code>removeEventListener</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>type</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>listener</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;EventDispatcher.html#method_removeEventListener">EventDispatcher</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_easeljs_events_EventDispatcher.js.html#l124"><code>removeEventListener:124</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Removes the specified event listener.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>The string type of the event.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">listener</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The listener function or object.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_reset" class="method item">
    <h3 class="name"><code>reset</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l657"><code>reset:657</code></a>
        
        </p>


        

        
            <p>Available since 0.3.0</p>
        
    </div>

    <div class="description">
        <p>Stops all open loads, destroys any loaded items, and resets the queue, so all items can
be reloaded again by calling <a href="../classes/AbstractLoader.html#method_load" class="crosslink">load</a>. Items are not removed from the
queue. To remove items use the <a href="../classes/LoadQueue.html#method_remove" class="crosslink">remove</a> or
<a href="../classes/LoadQueue.html#method_removeAll" class="crosslink">removeAll</a> method.</p>
    </div>

    

    

    
</div>

                
                    <div id="method_setMaxConnections" class="method item">
    <h3 class="name"><code>setMaxConnections</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>value</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l727"><code>setMaxConnections:727</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Set the maximum number of concurrent connections. Note that browsers and servers may have a built-in maximum
number of open connections, so any additional connections may remain in a pending state until the browser
opens the connection. Note that when loading scripts using tags, with <code>maintainScriptOrder=true</code>, only
one script is loaded at a time due to browser limitations.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">value</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                        <p>The number of concurrent loads to allow. By default, only a single connection per LoadQueue
is open at any time.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_setPaused" class="method item">
    <h3 class="name"><code>setPaused</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>value</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l882"><code>setPaused:882</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Pause or resume the current load. Active loads will not be cancelled, but the next items in the queue will not
be processed when active loads complete. LoadQueues are not paused by default.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">value</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
                    

                    

                    <div class="param-description">
                        <p>Whether the queue should be paused or not.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_setUseXHR" class="method item">
    <h3 class="name"><code>setUseXHR</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>value</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l555"><code>setUseXHR:555</code></a>
        
        </p>


        

        
            <p>Available since 0.3.0</p>
        
    </div>

    <div class="description">
        <p>Change the usXHR value. Note that if this is set to true, it may fail depending on the browser's capabilities.</p>
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">value</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
                    

                    

                    <div class="param-description">
                        <p>The new useXHR value to set.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
                    
                    The new useXHR value. If XHR is not supported by the browser, this will return false, even if
the provided value argument was true.
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_toString" class="method item inherited">
    <h3 class="name"><code>toString</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            <p>Inherited from
            <a href="..&#x2F;classes&#x2F;EventDispatcher.html#method_toString">
                EventDispatcher
            </a>
            
            but overwritten in
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l320"><code>toString:320</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
                    
                    a string representation of the instance.
                
            </div>
        </div>
    

    
</div>

                
            </div>
        

        
            <div id="properties" class="api-class-tabpanel">
                <h2 class="off-left">Properties</h2>

                
                    <div id="property__currentLoads" class="property item private">
    <h3 class="name"><code>_currentLoads</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>

    

    
        <span class="flag private">private</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l437"><code>_currentLoads:437</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>An array containing the currently downloading files.</p>
    </div>

    

    

    
</div>

                
                    <div id="property__currentlyLoadingScript" class="property item private">
    <h3 class="name"><code>_currentlyLoadingScript</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>

    

    
        <span class="flag private">private</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l428"><code>_currentlyLoadingScript:428</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Determines if there is currently a script loading. This helps ensure that only a single script loads at once when
using a script tag to do preloading.</p>
    </div>

    

    

    
</div>

                
                    <div id="property__extensionCallbacks" class="property item private">
    <h3 class="name"><code>_extensionCallbacks</code></h3>
    <span class="type">Null</span>

    

    
        <span class="flag private">private</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l398"><code>_extensionCallbacks:398</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>An object hash of callbacks that are fired for each file extension before the file is loaded, giving plugins the
ability to override properties of the load. Please see the <a href="../classes/LoadQueue.html#method_installPlugin" class="crosslink">installPlugin</a>
method for more information.</p>
    </div>

    

    

    
</div>

                
                    <div id="property__item" class="property item private inherited">
    <h3 class="name"><code>_item</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>

    

    
        <span class="flag private">private</span>
    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#property__item">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l90"><code>_item:90</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The item this loader represents. Note that this is null in a <a href="../classes/LoadQueue.html" class="crosslink">LoadQueue</a>, but will
be available on loaders such as <a href="../classes/XHRLoader.html" class="crosslink">XHRLoader</a> and <a href="../classes/TagLoader.html" class="crosslink">TagLoader</a>.</p>
    </div>

    

    

    
</div>

                
                    <div id="property__listeners" class="property item protected inherited">
    <h3 class="name"><code>_listeners</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>

    

    
        <span class="flag protected">protected</span>
    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;EventDispatcher.html#property__listeners">EventDispatcher</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_easeljs_events_EventDispatcher.js.html#l90"><code>_listeners:90</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        
    </div>

    

    

    
</div>

                
                    <div id="property__loadedRawResults" class="property item private">
    <h3 class="name"><code>_loadedRawResults</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>

    

    
        <span class="flag private">private</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l485"><code>_loadedRawResults:485</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>An object hash of un-parsed loaded items, indexed by the ID of the load item.</p>
    </div>

    

    

    
</div>

                
                    <div id="property__loadedResults" class="property item private">
    <h3 class="name"><code>_loadedResults</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>

    

    
        <span class="flag private">private</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l477"><code>_loadedResults:477</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>An object hash of loaded items, indexed by the ID of the load item.</p>
    </div>

    

    

    
</div>

                
                    <div id="property__loadedScripts" class="property item private">
    <h3 class="name"><code>_loadedScripts</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>

    

    
        <span class="flag private">private</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l522"><code>_loadedScripts:522</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>A list of scripts that have been loaded. Items are added to this list as <code>null</code> when they are
requested, contain the loaded item if it has completed, but not been dispatched to the user, and <code>true</true>
once they are complete and have been dispatched.</p>
    </div>

    

    

    
</div>

                
                    <div id="property__loadItemsById" class="property item private">
    <h3 class="name"><code>_loadItemsById</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>

    

    
        <span class="flag private">private</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l461"><code>_loadItemsById:461</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>An object hash of items that have finished downloading, indexed by item IDs.</p>
    </div>

    

    

    
</div>

                
                    <div id="property__loadItemsBySrc" class="property item private">
    <h3 class="name"><code>_loadItemsBySrc</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>

    

    
        <span class="flag private">private</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l469"><code>_loadItemsBySrc:469</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>An object hash of items that have finished downloading, indexed by item source.</p>
    </div>

    

    

    
</div>

                
                    <div id="property__loadQueue" class="property item private">
    <h3 class="name"><code>_loadQueue</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>

    

    
        <span class="flag private">private</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l445"><code>_loadQueue:445</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>An array containing the queued items that have not yet started downloading.</p>
    </div>

    

    

    
</div>

                
                    <div id="property__loadQueueBackup" class="property item private">
    <h3 class="name"><code>_loadQueueBackup</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>

    

    
        <span class="flag private">private</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l453"><code>_loadQueueBackup:453</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>An array containing downloads that have not completed, so that the LoadQueue can be properly reset.</p>
    </div>

    

    

    
</div>

                
                    <div id="property__loadStartWasDispatched" class="property item private">
    <h3 class="name"><code>_loadStartWasDispatched</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>

    

    
        <span class="flag private">private</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l408"><code>_loadStartWasDispatched:408</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Determines if the loadStart event was dispatched already. This event is only fired one time, when the first
file is requested.</p>
    </div>

    
        <p><strong>Default:</strong> false</p>
    

    

    
</div>

                
                    <div id="property__maxConnections" class="property item private">
    <h3 class="name"><code>_maxConnections</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    
        <span class="flag private">private</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l418"><code>_maxConnections:418</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The number of maximum open connections that a loadQueue tries to maintain. Please see
<a href="../classes/LoadQueue.html#method_setMaxConnections" class="crosslink">setMaxConnections</a> for more information.</p>
    </div>

    
        <p><strong>Default:</strong> 1</p>
    

    

    
</div>

                
                    <div id="property__numItems" class="property item private">
    <h3 class="name"><code>_numItems</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    
        <span class="flag private">private</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l493"><code>_numItems:493</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The number of items that have been requested. This helps manage an overall progress without knowing how large
the files are before they are downloaded.</p>
    </div>

    
        <p><strong>Default:</strong> 0</p>
    

    

    
</div>

                
                    <div id="property__numItemsLoaded" class="property item private">
    <h3 class="name"><code>_numItemsLoaded</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    
        <span class="flag private">private</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l503"><code>_numItemsLoaded:503</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The number of items that have completed loaded. This helps manage an overall progress without knowing how large
the files are before they are downloaded.</p>
    </div>

    
        <p><strong>Default:</strong> 0</p>
    

    

    
</div>

                
                    <div id="property__scriptOrder" class="property item private">
    <h3 class="name"><code>_scriptOrder</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>

    

    
        <span class="flag private">private</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l513"><code>_scriptOrder:513</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>A list of scripts in the order they were requested. This helps ensure that scripts are "completed" in the right
order.</p>
    </div>

    

    

    
</div>

                
                    <div id="property__typeCallbacks" class="property item private">
    <h3 class="name"><code>_typeCallbacks</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>

    

    
        <span class="flag private">private</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l388"><code>_typeCallbacks:388</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>An object hash of callbacks that are fired for each file type before the file is loaded, giving plugins the
ability to override properties of the load. Please see the <a href="../classes/LoadQueue.html#method_installPlugin" class="crosslink">installPlugin</a>
method for more information.</p>
    </div>

    

    

    
</div>

                
                    <div id="property_BINARY" class="property item">
    <h3 class="name"><code>BINARY</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>

    

    

    

    
        <span class="flag static">static</span>
    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l203"><code>BINARY:203</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The preload type for generic binary types. Note that images and sound files are treated as binary.</p>
    </div>

    
        <p><strong>Default:</strong> binary</p>
    

    

    
</div>

                
                    <div id="property_canceled" class="property item inherited">
    <h3 class="name"><code>canceled</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#property_canceled">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l72"><code>canceled:72</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Determine if the loader was canceled. Canceled loads will not fire complete events. Note that
<a href="../classes/LoadQueue.html" class="crosslink">LoadQueue</a> queues should be closed using <a href="../classes/AbstractLoader.html#method_close" class="crosslink">close</a>
instead of canceled.</p>
    </div>

    
        <p><strong>Default:</strong> false</p>
    

    

    
</div>

                
                    <div id="property_CSS" class="property item">
    <h3 class="name"><code>CSS</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>

    

    

    

    
        <span class="flag static">static</span>
    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l212"><code>CSS:212</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The preload type for css files. CSS files are loaded into a LINK or STYLE tag (depending on the load type)</p>
    </div>

    
        <p><strong>Default:</strong> css</p>
    

    

    
</div>

                
                    <div id="property_IMAGE" class="property item">
    <h3 class="name"><code>IMAGE</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>

    

    

    

    
        <span class="flag static">static</span>
    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l221"><code>IMAGE:221</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The preload type for image files, usually png, gif, or jpg/jpeg. Images are loaded into an IMAGE tag.</p>
    </div>

    
        <p><strong>Default:</strong> image</p>
    

    

    
</div>

                
                    <div id="property_JAVASCRIPT" class="property item">
    <h3 class="name"><code>JAVASCRIPT</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>

    

    

    

    
        <span class="flag static">static</span>
    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l230"><code>JAVASCRIPT:230</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The preload type for javascript files, usually with the "js" file extension. JavaScript files are loaded into a
SCRIPT tag.</p>
    </div>

    
        <p><strong>Default:</strong> javascript</p>
    

    

    
</div>

                
                    <div id="property_JSON" class="property item">
    <h3 class="name"><code>JSON</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>

    

    

    

    
        <span class="flag static">static</span>
    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l240"><code>JSON:240</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The preload type for json files, usually with the "json" file extension. JSON data is loaded and parsed into a
JavaScript object.</p>
    </div>

    
        <p><strong>Default:</strong> json</p>
    

    

    
</div>

                
                    <div id="property_LOAD_TIMEOUT" class="property item">
    <h3 class="name"><code>LOAD_TIMEOUT</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    
        <span class="flag static">static</span>
    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l193"><code>LOAD_TIMEOUT:193</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Time in milliseconds to assume a load has failed.</p>
    </div>

    
        <p><strong>Default:</strong> 8000</p>
    

    

    
</div>

                
                    <div id="property_loaded" class="property item inherited">
    <h3 class="name"><code>loaded</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#property_loaded">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l63"><code>loaded:63</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>If the loader has completed loading. This provides a quick check, but also ensures that the different approaches
used for loading do not pile up resulting in more than one <code>complete</code> event.</p>
    </div>

    
        <p><strong>Default:</strong> false</p>
    

    

    
</div>

                
                    <div id="property_maintainScriptOrder" class="property item">
    <h3 class="name"><code>maintainScriptOrder</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l311"><code>maintainScriptOrder:311</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Ensure loaded scripts "complete" in the order they are specified. Note that scripts loaded via tags will only
load one at a time, and will be added to the document when they are loaded.</p>
    </div>

    
        <p><strong>Default:</strong> true</p>
    

    

    
</div>

                
                    <div id="property_next" class="property item">
    <h3 class="name"><code>next</code></h3>
    <span class="type"><a href="../classes/LoadQueue.html" class="crosslink">LoadQueue</a></span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l331"><code>next:331</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The next preload queue to process when this one is complete. If an error is thrown in the current queue, and
<code>loadQueue.stopOnError</code> is <code>true</code>, the next queue will not be processed.</p>
    </div>

    
        <p><strong>Default:</strong> null</p>
    

    

    
</div>

                
                    <div id="property_onComplete" class="property item deprecated inherited">
    <h3 class="name"><code>onComplete</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>

    
        <span class="flag deprecated" title="In favour of the &quot;complete&quot; event. Will be removed in a future version.">deprecated</span>
    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#property_onComplete">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l159"><code>onComplete:159</code></a>
        
        </p>

        
            <p>Deprecated: In favour of the &quot;complete&quot; event. Will be removed in a future version.</p>
        

        
    </div>

    <div class="description">
        <p>The callback that is fired when the loader's content has been entirely loaded.</p>
    </div>

    

    

    
</div>

                
                    <div id="property_onError" class="property item deprecated inherited">
    <h3 class="name"><code>onError</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>

    
        <span class="flag deprecated" title="In favour of the &quot;error&quot; event. Will be removed in a future version.">deprecated</span>
    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#property_onError">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l167"><code>onError:167</code></a>
        
        </p>

        
            <p>Deprecated: In favour of the &quot;error&quot; event. Will be removed in a future version.</p>
        

        
    </div>

    <div class="description">
        <p>The callback that is fired when the loader encounters an error.</p>
    </div>

    

    

    
</div>

                
                    <div id="property_onFileLoad" class="property item deprecated">
    <h3 class="name"><code>onFileLoad</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>

    
        <span class="flag deprecated" title="In favour of the &quot;fileload&quot; event. Will be removed in a future version.">deprecated</span>
    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l370"><code>onFileLoad:370</code></a>
        
        </p>

        
            <p>Deprecated: In favour of the &quot;fileload&quot; event. Will be removed in a future version.</p>
        

        
    </div>

    <div class="description">
        <p>The callback that is fired when an individual file is loaded.</p>
    </div>

    

    

    
</div>

                
                    <div id="property_onFileProgress" class="property item deprecated">
    <h3 class="name"><code>onFileProgress</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>

    
        <span class="flag deprecated" title="In favour of the &quot;fileprogress&quot; event. Will be removed in a future version.">deprecated</span>
    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l378"><code>onFileProgress:378</code></a>
        
        </p>

        
            <p>Deprecated: In favour of the &quot;fileprogress&quot; event. Will be removed in a future version.</p>
        

        
    </div>

    <div class="description">
        <p>The callback that is fired when an individual files progress changes.</p>
    </div>

    

    

    
</div>

                
                    <div id="property_onLoadStart" class="property item deprecated inherited">
    <h3 class="name"><code>onLoadStart</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>

    
        <span class="flag deprecated" title="In favour of the &quot;loadStart&quot; event. Will be removed in a future version.">deprecated</span>
    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#property_onLoadStart">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l151"><code>onLoadStart:151</code></a>
        
        </p>

        
            <p>Deprecated: In favour of the &quot;loadStart&quot; event. Will be removed in a future version.</p>
        

        
    </div>

    <div class="description">
        <p>The callback that is fired when a load starts.</p>
    </div>

    

    

    
</div>

                
                    <div id="property_onProgress" class="property item deprecated inherited">
    <h3 class="name"><code>onProgress</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>

    
        <span class="flag deprecated" title="In favour of the &quot;progress&quot; event. Will be removed in a future version.">deprecated</span>
    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#property_onProgress">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l143"><code>onProgress:143</code></a>
        
        </p>

        
            <p>Deprecated: In favour of the &quot;progress&quot; event. Will be removed in a future version.</p>
        

        
    </div>

    <div class="description">
        <p>The callback that is fired when the overall progress changes.</p>
    </div>

    

    

    
</div>

                
                    <div id="property_progress" class="property item inherited">
    <h3 class="name"><code>progress</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#property_progress">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l82"><code>progress:82</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The current load progress (percentage) for this item. This will be a number between 0 and 1.</p>
    </div>

    
        <p><strong>Default:</strong> 0</p>
    

    

    
</div>

                
                    <div id="property_SOUND" class="property item">
    <h3 class="name"><code>SOUND</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>

    

    

    

    
        <span class="flag static">static</span>
    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l250"><code>SOUND:250</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The preload type for sound files, usually mp3, ogg, or wav. Audio is loaded into an AUDIO tag.</p>
    </div>

    
        <p><strong>Default:</strong> sound</p>
    

    

    
</div>

                
                    <div id="property_stopOnError" class="property item">
    <h3 class="name"><code>stopOnError</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l303"><code>stopOnError:303</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Does LoadQueue stop processing the current queue when an error is encountered.</p>
    </div>

    
        <p><strong>Default:</strong> false</p>
    

    

    
</div>

                
                    <div id="property_SVG" class="property item">
    <h3 class="name"><code>SVG</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>

    

    

    

    
        <span class="flag static">static</span>
    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l259"><code>SVG:259</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The preload type for SVG files.</p>
    </div>

    
        <p><strong>Default:</strong> svg</p>
    

    

    
</div>

                
                    <div id="property_TEXT" class="property item">
    <h3 class="name"><code>TEXT</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>

    

    

    

    
        <span class="flag static">static</span>
    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l268"><code>TEXT:268</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The preload type for text files, which is also the default file type if the type can not be determined. Text is
loaded as raw text.</p>
    </div>

    
        <p><strong>Default:</strong> text</p>
    

    

    
</div>

                
                    <div id="property_useXHR" class="property item">
    <h3 class="name"><code>useXHR</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l289"><code>useXHR:289</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>Use XMLHttpRequest (XHR) when possible. Note that LoadQueue will default to tag loading or XHR loading depending
on the requirements for a media type. For example, HTML audio can not be loaded with XHR, and WebAudio can not be
loaded with tags, so it will default the the correct type instead of using the user-defined type.</p>

<p><b>Note: This property is read-only.</b> To change it, please use the <a href="../classes/LoadQueue.html#method_setUseXHR" class="crosslink">setUseXHR</a>
method.</p>
    </div>

    
        <p><strong>Default:</strong> true</p>
    

    

    
</div>

                
                    <div id="property_XML" class="property item">
    <h3 class="name"><code>XML</code></h3>
    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>

    

    

    

    
        <span class="flag static">static</span>
    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l278"><code>XML:278</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>The preload type for xml files. XML is loaded into an XML document.</p>
    </div>

    
        <p><strong>Default:</strong> xml</p>
    

    

    
</div>

                
            </div>
        

        

        
            <div id="events" class="api-class-tabpanel">
                <h2 class="off-left">Events</h2>

                
                    <div id="event_complete" class="events item inherited">
    <h3 class="name"><code>complete</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#event_complete">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l120"><code>complete:120</code></a>
        
        </p>

        

        
            <p>Available since 0.3.0</p>
        
    </div>

    <div class="description">
        <p>The event that is fired when the entire queue has been loaded.</p>
    </div>

    
        <div class="params">
            <h4>Event Payload:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">target</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The object that dispatched the event.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>The event type.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    


    
</div>

                
                    <div id="event_error" class="events item inherited">
    <h3 class="name"><code>error</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#event_error">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l128"><code>error:128</code></a>
        
        </p>

        

        
            <p>Available since 0.3.0</p>
        
    </div>

    <div class="description">
        <p>The event that is fired when the loader encounters an error. If the error was encountered by a file, the event will
contain the item that caused the error. There may be additional properties such as the error reason on event
objects.</p>
    </div>

    
        <div class="params">
            <h4>Event Payload:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">target</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The object that dispatched the event.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>The event type.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name optional">[item]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    

                    

                    <div class="param-description">
                        <p>The item that was being loaded that caused the error. The item was specified in
the <a href="../classes/LoadQueue.html#method_loadFile" class="crosslink">loadFile</a> or <a href="../classes/LoadQueue.html#method_loadManifest" class="crosslink">loadManifest</a>
call. If only a string path or tag was specified, the object will contain that value as a property.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name optional">[error]</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                        <span class="flag optional" title="This parameter is optional.">optional</span>
                    

                    

                    <div class="param-description">
                        <p>The error object or text.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    


    
</div>

                
                    <div id="event_fileload" class="events item">
    <h3 class="name"><code>fileload</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l341"><code>fileload:341</code></a>
        
        </p>

        

        
            <p>Available since 0.3.0</p>
        
    </div>

    <div class="description">
        <p>This event is fired when an individual file has loaded, and been processed.</p>
    </div>

    
        <div class="params">
            <h4>Event Payload:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">target</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The object that dispatched the event.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>The event type.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">item</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The file item which was specified in the <a href="../classes/LoadQueue.html#method_loadFile" class="crosslink">loadFile</a>
or <a href="../classes/LoadQueue.html#method_loadManifest" class="crosslink">loadManifest</a> call. If only a string path or tag was specified, the
object will contain that value as a property.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">result</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The HTML tag or parsed result of the loaded item.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">rawResult</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The unprocessed result, usually the raw text or binary data before it is converted
to a usable object.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    


    
</div>

                
                    <div id="event_fileprogress" class="events item">
    <h3 class="name"><code>fileprogress</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_LoadQueue.js.html#l355"><code>fileprogress:355</code></a>
        
        </p>

        

        
            <p>Available since 0.3.0</p>
        
    </div>

    <div class="description">
        <p>This event is fired when an an individual file progress changes.</p>
    </div>

    
        <div class="params">
            <h4>Event Payload:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">The</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>object that dispatched the event.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>The event type.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">item</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The file item which was specified in the <a href="../classes/LoadQueue.html#method_loadFile" class="crosslink">loadFile</a>
or <a href="../classes/LoadQueue.html#method_loadManifest" class="crosslink">loadManifest</a> call. If only a string path or tag was specified, the
object will contain that value as a property.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">loaded</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                        <p>The number of bytes that have been loaded. Note that this may just be a percentage of 1.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">total</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                        <p>The total number of bytes. If it is unknown, the value is 1.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">percent</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                        <p>The percentage that has been loaded. This will be a number between 0 and 1.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    


    
</div>

                
                    <div id="event_loadStart" class="events item inherited">
    <h3 class="name"><code>loadStart</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#event_loadStart">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l112"><code>loadStart:112</code></a>
        
        </p>

        

        
            <p>Available since 0.3.0</p>
        
    </div>

    <div class="description">
        <p>The event that is fired when a load starts.</p>
    </div>

    
        <div class="params">
            <h4>Event Payload:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">target</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The object that dispatched the event.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>The event type.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    


    
</div>

                
                    <div id="event_progress" class="events item inherited">
    <h3 class="name"><code>progress</code></h3>
    <span class="type"></span>

    

    

    

    

    <div class="meta">
        
            
                <p>Inherited from
                <a href="..&#x2F;classes&#x2F;AbstractLoader.html#event_progress">AbstractLoader</a>:
            
        
        
        <a href="..&#x2F;files&#x2F;.._src_preloadjs_AbstractLoader.js.html#l100"><code>progress:100</code></a>
        
        </p>

        

        
            <p>Available since 0.3.0</p>
        
    </div>

    <div class="description">
        <p>The event that is fired when the overall progress changes.</p>
    </div>

    
        <div class="params">
            <h4>Event Payload:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">target</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
                    

                    

                    <div class="param-description">
                        <p>The object that dispatched the event.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">type</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>The event type.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">loaded</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                        <p>The amount that has been loaded so far. Note that this is may just be a percentage of 1,
since file sizes can not be determined before a load is kicked off, if at all.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">total</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                        <p>The total number of bytes. Note that this may just be 1.</p>
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">percent</code>
                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
                    

                    

                    <div class="param-description">
                        <p>The percentage that has been loaded. This will be a number between 0 and 1.</p>
                    </div>

                    
                </li>
            
            </ul>
        </div>
    


    
</div>

                
            </div>
        
    </div>
</div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="..&#x2F;assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="..&#x2F;assets/js/yui-prettify.js"></script>
<script src="..&#x2F;assets/../api.js"></script>
<script src="..&#x2F;assets/js/api-filter.js"></script>
<script src="..&#x2F;assets/js/api-list.js"></script>
<script src="..&#x2F;assets/js/api-search.js"></script>
<script src="..&#x2F;assets/js/apidocs.js"></script>
</body>
</html>